﻿using System;

using zijian666.Core.Abstractions;

namespace zijian666.Converts.Abstractions;

/// <summary>
/// 翻译器
/// </summary>
public interface ITranslator : IFeature
{
    /// <summary>
    /// 是否可翻译
    /// </summary>
    bool CanTranslate(Type type);

    /// <summary>
    /// 翻译
    /// </summary>
    object? Translate(IConvertContext context, object input);
}
